<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 标题 -->
    <title>大事件登录</title>
    <!-- 网站说明 -->
    <meta name="description" content="大事件">
    <!-- 关键字 -->
    <meta name="keywords" content="大事件数据">
    <!-- 引入图标 -->
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <!-- 引入layui -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入公共css -->
    <link rel="stylesheet" href="/assets/css/common.css">
    <!-- 引入当前页面的css -->
    <!-- 点/是基于路由的，如果路由有问题，就会出错，所以可以直接写/ -->
    <link rel="stylesheet" href="/assets/css/login.css">

</head>

<body>
    <!-- 1.顶部logo -->
    <div class="layui-main header">
        <img src="/assets/images/logo.png" alt="">
    </div>
    <!-- 2注册和登录区域 -->
    <div class="login-reg">
        <!-- 2.1标题部分 -->
        <div class="title-box"></div>
        <!-- 2.2登录区 -->
        <div id="loginBox">
            <!-- 2.2.1登录的表单 -->
            <form class="layui-form" id="formLogin" action="">
                <!-- 2.2.1.1表单用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" value="lmr123" required lay-verify="required|username" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>

                <!--2.2.1.2 表单密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" value="123123" required lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>

                <!--2.2.1.3 表单登录  type不写属性值，则默认submit,不能设置button
                lay-submit 是属性，可以让button可以校验
                -->

                <button class="layui-btn  layui-btn-normal layui-btn-fluid" lay-submit>登录</button>
                <div class="layui-form-item">
                    <a href="javascript:;">去注册账号</a>
                </div>

            </form>
        </div>
        <!-- 2.3注册区-->
        <div id="regBox">
            <!-- 2.3.1注册的表单 -->
            <form class="layui-form" id="formReg" action="">
                <!-- 2.3.1.1表单用户名 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>


                <!--2.3.1.2 表单密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
                <!-- 2.3.1.3 再次输入密码 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="repassword" required lay-verify="required|repwd" placeholder="请再次输入密码" autocomplete="off" class="layui-input">
                </div>
                <!--2.3.1.3 表单登录  -->

                <button class="layui-btn  layui-btn-normal layui-btn-fluid" lay-submit>注册</button>
                <div class="layui-form-item">
                    <a href="javascript:;">去登录</a>
                </div>
            </form>

        </div>
    </div>



    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/lib/axios.js"></script>
    <script src="/assets/js/common.js"></script>
    <script src="/assets/js/login.js"></script>

</body>

</html>